/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * AddEstudent.java
 *
 * Created on 14/06/2011, 06:40:13 PM
 */

package GUI.ATTENDANT;

import Procedures.DBConection;
import entities.User;
import javax.swing.JFrame;
import javax.swing.JOptionPane;

/**
 *
 * @author SIX-14
 */
public class UserGui extends javax.swing.JPanel {

    
    /** Creates new form AddEstudent */


    

    public UserGui() {
        initComponents();
    }
    public UserGui(DBConection myConection, int action, JFrame paternframe, User userenty) {

        initComponents();
        setUser(userenty);
        setMyConection(myConection);
        fillComboBoxes();
        setPaternFrame(paternframe);
        initComponents2(action);
         
    }
    public UserGui(DBConection myConection, int action, JFrame paternframe, User userenty, String[] atendant ) {

        initComponents();
        setUser(userenty);
        setMyConection(myConection);
        fillComboBoxes();
        setPaternFrame(paternframe);
        jTextField5.setText(atendant[0]);
        jPasswordField1.setText(atendant[1]);
        jPasswordField2.setText(atendant[1]);
        initComponents2(action);


    }
    private DBConection myConection;
    private String tableUser="";
    private JFrame paternframe;
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public JFrame getPaternframe() {
        return paternframe;
    }

    public void setPaternFrame(JFrame paternframe) {
        this.paternframe = paternframe;
    }

    public String getTableUser() {
        return tableUser;
    }

    public void setTableUser(String tableUser) {
        this.tableUser = tableUser;
    }

    public DBConection getMyConection() {
        return myConection;
    }

    public void setMyConection(DBConection myConection) {
        this.myConection = myConection;
    }

    public void fillComboBoxes(){
        getMyConection().sendSQLQuery("SELECT name FROM type_user;");
        String[] elements = getMyConection().getLastResultSetColumnStrings(1);
        if (elements != null) {
            jComboBox1.removeAllItems();
            jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(elements));
        }
        getMyConection().sendSQLQuery("SELECT name FROM especiality where active=1;");
        elements = getMyConection().getLastResultSetColumnStrings(1);
        if (elements != null) {
            jComboBox2.removeAllItems();
            jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(elements));
        }
    }
    public void initComponents2(int action){
        jLabel7.setVisible(false);
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jTextField5.setVisible(false);
        jPasswordField1.setVisible(false);
        jPasswordField2.setVisible(false);
        
        switch(action){
            case 1: jButton1.setText("Agregar"); break;
            case 2: jButton1.setText("Modificar"); jCheckBox1.setEnabled(true);
                    fillfields(); break;
            case 3: jButton1.setText("Eliminar"); jTextField1.setEditable(false);
                    jTextField2.setEditable(false); jTextField3.setEditable(false);
                    jTextField4.setEditable(false); jComboBox1.setEnabled(false);
                    jComboBox2.setEnabled(false); jCheckBox1.setSelected(false);
                    jTextField5.setEditable(false); jPasswordField1.setEditable(false);
                    jPasswordField2.setEditable(false);
                    fillfields(); break;

            default: jButton1.setEnabled(false); jButton1.setText("--------"); break;
        }
        
    }

    public void fillfields(){
        jTextField1.setText(String.valueOf(getUser().getIdentifier()));
        getMyConection().sendSQLQuery("SELECT name FROM TYPE_USER WHERE type_user="+getUser().getTypeUser()+";");
        jComboBox1.setSelectedItem(getMyConection().getLastResultSetColumnStrings(1)[0]);//setSelectedIndex(Integer.parseInt(getUser().getTypeUser()));
        jTextField2.setText(getUser().getName());
        jTextField3.setText(getUser().getPaternLastname());
        jTextField4.setText(getUser().getMaternLastname());
        getMyConection().sendSQLQuery("SELECT name FROM ESPECIALITY WHERE CODE='"+getUser().getEspeciality()+"';");
        jComboBox2.setSelectedItem(getMyConection().getLastResultSetColumnStrings(1)[0]);
        jCheckBox1.setSelected(getUser().isActive());
        if(jTextField5.getText().length()>0){
            jLabel7.setVisible(true);
            jLabel8.setVisible(true);
            jLabel9.setVisible(true);
            jTextField5.setVisible(true);
            jPasswordField1.setVisible(true);
            jPasswordField2.setVisible(true);
            getPaternframe().pack();
        }
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */


    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jLabel2 = new javax.swing.JLabel();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel3 = new javax.swing.JLabel();
        jTextField2 = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jTextField3 = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jTextField4 = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        jComboBox2 = new javax.swing.JComboBox();
        jCheckBox1 = new javax.swing.JCheckBox();
        jButton1 = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jTextField5 = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jPasswordField1 = new javax.swing.JPasswordField();
        jLabel9 = new javax.swing.JLabel();
        jPasswordField2 = new javax.swing.JPasswordField();
        jLabel10 = new javax.swing.JLabel();

        jLabel1.setText("Matricula:");

        jLabel2.setText("Usuario:");

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1" }));
        jComboBox1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseReleased(java.awt.event.MouseEvent evt) {
                jComboBox1MouseReleased(evt);
            }
        });
        jComboBox1.addKeyListener(new java.awt.event.KeyAdapter() {
            public void keyReleased(java.awt.event.KeyEvent evt) {
                jComboBox1KeyReleased(evt);
            }
        });

        jLabel3.setText("Nombre:");

        jLabel4.setText("Apellido Paterno:");

        jLabel5.setText("Apellido Materno:");

        jLabel6.setText("Especialidad:");

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));

        jCheckBox1.setSelected(true);
        jCheckBox1.setText("Activo");
        jCheckBox1.setEnabled(false);

        jButton1.setText("jButton1");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton1MouseClicked(evt);
            }
        });

        jLabel7.setText("User:");

        jLabel8.setText("Password");

        jLabel9.setText("Rescriba Password");

        jLabel10.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ingenieriaproyectos/resources/img/banner.png"))); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jTextField2))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel4)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel5)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jTextField4))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel6)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jButton1)
                                    .addComponent(jComboBox2, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel7)
                            .addComponent(jTextField5, javax.swing.GroupLayout.DEFAULT_SIZE, 85, Short.MAX_VALUE)
                            .addComponent(jLabel8)
                            .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jPasswordField1, 0, 0, Short.MAX_VALUE)
                            .addComponent(jPasswordField2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jCheckBox1))
                .addGap(536, 536, 536))
            .addGroup(layout.createSequentialGroup()
                .addComponent(jLabel10)
                .addContainerGap(22, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(jLabel10)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(14, 14, 14)
                        .addComponent(jLabel7)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPasswordField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jLabel9)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPasswordField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel1))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel2)
                            .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel5)
                            .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(jComboBox2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addComponent(jCheckBox1)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jButton1)))
                .addGap(35, 35, 35))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked
        if(jComboBox1.getSelectedItem().toString().equals("Alumno")){
            setTableUser("student");
        }else if(jComboBox1.getSelectedItem().toString().equals("Maestro")){
            setTableUser("teacher");
        }else if(jComboBox1.getSelectedItem().toString().equals("Invitado")){
            setTableUser("inviter");
        }else if(jComboBox1.getSelectedItem().toString().equals("Encargado")){
            setTableUser("teacher");
        }
        /*try{
            getPaternframe().getContentPane().removeAll();
            getPaternframe().repaint();
        }
        catch(Exception e){
        }*/
        if(jButton1.getText().equals("Agregar")){
            if(jPasswordField1.isVisible()){
                if(String.valueOf(jPasswordField1.getPassword()).equals(String.valueOf(jPasswordField2.getPassword()))) {
                     getMyConection().sendSQL("INSERT INTO teacher SET ID="+jTextField1.getText()+", TYPE_USER=(SELECT TYPE_USER FROM TYPE_USER WHERE NAME='"+jComboBox1.getSelectedItem().toString()+"'), NAME='"+jTextField2.getText()+"', PATERN_LASTNAME='"+jTextField3.getText()+"', MATERN_LASTNAME='"+jTextField4.getText()+"', ESPECIALITY=(SELECT CODE FROM ESPECIALITY WHERE NAME='"+jComboBox2.getSelectedItem().toString()+"'), ACTIVE=1;");
                     getMyConection().sendSQL("INSERT INTO ATENDANT SET ID="+jTextField1.getText()+", USERNAME='"+jTextField5.getText()+"', PASSWORD='"+String.valueOf(jPasswordField1.getPassword())+"';");
                     JOptionPane.showMessageDialog(null, "encargado agregado exitosamente", "Registro Exitoso", 1);
                     this.setVisible(false);
                     getPaternframe().remove(this);
                }else{
                    JOptionPane.showMessageDialog(null, "password   no coincide", "Verifiue password", 1);
                    System.out.println(jPasswordField1.getPassword());
                    System.out.println(jPasswordField2.getPassword());
                }

            }else{
                getMyConection().sendSQL("INSERT INTO "+getTableUser()+ " SET ID="+jTextField1.getText()+", TYPE_USER=(SELECT TYPE_USER FROM TYPE_USER WHERE NAME='"+jComboBox1.getSelectedItem().toString()+"'), NAME='"+jTextField2.getText()+"', PATERN_LASTNAME='"+jTextField3.getText()+"', MATERN_LASTNAME='"+jTextField4.getText()+"', ESPECIALITY=(SELECT CODE FROM ESPECIALITY WHERE NAME='"+jComboBox2.getSelectedItem().toString()+"'), ACTIVE=1;");
                JOptionPane.showMessageDialog(null, jComboBox1.getSelectedItem().toString()+" Registrado Exitosamente", "Registro Exitoso", 1);
                this.setVisible(false);
                getPaternframe().remove(this);
            }
           
        }else if(jButton1.getText().equals("Modificar")){
            int active;
            if (jCheckBox1.isSelected()){
                active=1;
            }else{
                active=0;
            }
            if(jPasswordField1.isVisible()){
                if(String.valueOf(jPasswordField1.getPassword()).equals(String.valueOf(jPasswordField2.getPassword()))) {
                    getMyConection().sendSQL("DELETE FROM ATENDANT WHERE ID='"+jTextField1.getText()+"';");
                    getMyConection().sendSQL("UPDATE "+getTableUser()+" SET id="+jTextField1.getText()+", TYPE_USER=(SELECT TYPE_USER FROM TYPE_USER WHERE NAME='"+jComboBox1.getSelectedItem().toString()+"'), NAME='"+jTextField2.getText()+"', PATERN_LASTNAME='"+jTextField3.getText()+"', MATERN_LASTNAME='"+jTextField4.getText()+"', ESPECIALITY=(SELECT CODE FROM ESPECIALITY WHERE NAME='"+jComboBox2.getSelectedItem().toString()+"'), ACTIVE= "+active+" WHERE ID="+getUser().getIdentifier()+";");
                     getMyConection().sendSQL("INSERT INTO ATENDANT SET ID="+jTextField1.getText()+", USERNAME='"+jTextField5.getText()+"', PASSWORD='"+String.valueOf(jPasswordField1.getPassword())+"';");
                     JOptionPane.showMessageDialog(null, "Encargado Modificado Exitosamente", "Registro Modificado", 1);
                    this.setVisible(false);
                    getPaternframe().remove(this);
                }else{
                    JOptionPane.showMessageDialog(null, "Passwords no coinciden", "Verificar Password", 1);

                }

            }else{
                getMyConection().sendSQL("UPDATE "+getTableUser()+" SET id="+jTextField1.getText()+", TYPE_USER=(SELECT TYPE_USER FROM TYPE_USER WHERE NAME='"+jComboBox1.getSelectedItem().toString()+"'), NAME='"+jTextField2.getText()+"', PATERN_LASTNAME='"+jTextField3.getText()+"', MATERN_LASTNAME='"+jTextField4.getText()+"', ESPECIALITY=(SELECT CODE FROM ESPECIALITY WHERE NAME='"+jComboBox2.getSelectedItem().toString()+"'), ACTIVE= "+active+" WHERE ID="+getUser().getIdentifier()+";");
                JOptionPane.showMessageDialog(null, jComboBox1.getSelectedItem().toString()+" Modificado Exitosamente", "Registro Modificado", 1);

                this.setVisible(false);
                getPaternframe().remove(this);
            }


        }else if(jButton1.getText().equals("Eliminar")){
            if(jPasswordField1.isVisible()){
                    getMyConection().sendSQL("DELETE FROM ATENDANT WHERE ID="+jTextField1.getText()+";");
                    getMyConection().sendSQL("UPDATE teacher SET ACTIVE=0 WHERE ID="+jTextField1.getText()+";");
                    JOptionPane.showMessageDialog(null, "Encargado Eliminado Exitosamente", "Registro Eliminado", 1);

                    this.setVisible(false);
                getPaternframe().remove(this);

                

            }else{
                getMyConection().sendSQL("UPDATE "+getTableUser()+" SET ACTIVE=0 WHERE ID="+jTextField1.getText()+";");
                    JOptionPane.showMessageDialog(null, jComboBox1.getSelectedItem().toString()+" Eliminado Exitosamente", "Registro Eliminado", 1);
                this.setVisible(false);
                getPaternframe().remove(this);
            }
        }



    }//GEN-LAST:event_jButton1MouseClicked

    private void jComboBox1KeyReleased(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jComboBox1KeyReleased
        if(jComboBox1.getSelectedItem().toString().equals("Encargado")){
            jLabel7.setVisible(true);
            jLabel8.setVisible(true);
            jLabel9.setVisible(true);
            jTextField5.setVisible(true);
            jPasswordField1.setVisible(true);
            jPasswordField2.setVisible(true);
            getPaternframe().pack();
        }else{
            jLabel7.setVisible(false);
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jTextField5.setVisible(false);
        jPasswordField1.setVisible(false);
        jPasswordField2.setVisible(false);
        getPaternframe().pack();
        }// TODO add your handling code here:
    }//GEN-LAST:event_jComboBox1KeyReleased

    private void jComboBox1MouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jComboBox1MouseReleased
        if(jComboBox1.getSelectedItem().toString().equals("Encargado")){
            jLabel7.setVisible(true);
            jLabel8.setVisible(true);
            jLabel9.setVisible(true);
            jTextField5.setVisible(true);
            jPasswordField1.setVisible(true);
            jPasswordField2.setVisible(true);
            getPaternframe().pack();
        }else{
            jLabel7.setVisible(false);
        jLabel8.setVisible(false);
        jLabel9.setVisible(false);
        jTextField5.setVisible(false);
        jPasswordField1.setVisible(false);
        jPasswordField2.setVisible(false);
        getPaternframe().pack();
        }// TODO add your handling code here:
    }//GEN-LAST:event_jComboBox1MouseReleased


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JCheckBox jCheckBox1;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPasswordField jPasswordField1;
    private javax.swing.JPasswordField jPasswordField2;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    // End of variables declaration//GEN-END:variables

}
